/**
 * Creates a promise that resolves after a specified duration.
 * @param ms The duration in milliseconds to delay.
 * @returns A promise that resolves after the delay.
 */
export const delay = (ms: number): Promise<void> => {
  return new Promise(resolve => setTimeout(resolve, ms));
}
